cc.Class({
    extends: cc.Component,

    properties: {
        ClickButton: {
            url: cc.AudioClip,
            default: null
        },
    },

    onLoad: function () {
        this.node.on(cc.Node.EventType.TOUCH_START, function () {
            if (this.ClickButton) {
                // 播放选择的声音
                var id = cc.audioEngine.play(this.ClickButton, false, 1);
            } else {
                // 播放默认的声音
                var id = cc.audioEngine.play("res/raw-assets/resources/audio/DianJiAnNiuClip.mp3", false, 1);
            }
            return true;
        }, this);
    },

});